import service from '@/utils/request'

// @Tags FdJq
// @Summary 创建节气
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdJq true "创建节气"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /fdJq/createFdJq [post]
export const createFdJq = (data) => {
  return service({
    url: '/fdJq/createFdJq',
    method: 'post',
    data
  })
}

// @Tags FdJq
// @Summary 删除节气
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdJq true "删除节气"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdJq/deleteFdJq [delete]
export const deleteFdJq = (data) => {
  return service({
    url: '/fdJq/deleteFdJq',
    method: 'delete',
    data
  })
}

// @Tags FdJq
// @Summary 批量删除节气
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除节气"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdJq/deleteFdJq [delete]
export const deleteFdJqByIds = (data) => {
  return service({
    url: '/fdJq/deleteFdJqByIds',
    method: 'delete',
    data
  })
}

// @Tags FdJq
// @Summary 更新节气
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdJq true "更新节气"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /fdJq/updateFdJq [put]
export const updateFdJq = (data) => {
  return service({
    url: '/fdJq/updateFdJq',
    method: 'put',
    data
  })
}

// @Tags FdJq
// @Summary 用id查询节气
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FdJq true "用id查询节气"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /fdJq/findFdJq [get]
export const findFdJq = (params) => {
  return service({
    url: '/fdJq/findFdJq',
    method: 'get',
    params
  })
}

// @Tags FdJq
// @Summary 分页获取节气列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取节气列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdJq/getFdJqList [get]
export const getFdJqList = (params) => {
  return service({
    url: '/fdJq/getFdJqList',
    method: 'get',
    params
  })
}



export const setFdJqGraphic = (data) => {
  return service({
    url: '/fdJq/setFdJqGraphic',
    method: 'post',
    data
  })
}


export const getFdJqGraphic = (params) => {
  return service({
    url: '/fdJq/getFdJqGraphic',
    method: 'get',
    params
  })
}

